package com.fulu.netty.luban.firstdemo;

import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelPipeline;
import io.netty.channel.socket.SocketChannel;

/**
 * ChannelInitializer 这个是特殊Handler
 */
public class TestServerInitializer extends ChannelInitializer<SocketChannel> {
    /**
     *
     * @param socketChannel 客户端的channel
     * @throws Exception
     */
    @Override
    protected void initChannel(SocketChannel socketChannel) throws Exception {
//        每一个客户端有一份pipeline
        ChannelPipeline pipeline = socketChannel.pipeline();
    }
}
